Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify client gid uniqueness for a single service event. #2636

Merged

Conversation

fujitatomoya
Copy link
Collaborator

part of ros2/rmw#357

  • this PR makes sure uniqueness of client GID via single service event.
  • at this moment, rmw_connextdds is the only rmw implementation that can pass this test.

// Only rmw_connextdds can pass this test requirement for now.
// See more details for https://github.com/ros2/rmw/issues/357
if (std::string(rmw_get_implementation_identifier()).find("rmw_connextdds") == 0) {
ASSERT_THAT(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed that rmw_fastrtps and rmw_cyclonedds fail in this ASSERTION.

@fujitatomoya
Copy link
Collaborator Author

@wjwwood @clalancette @ahcorde can you review this?

It would be good to have a new test (maybe in rcl?) that checks that this condition is met, along with any clarification in the rmw docs to require it of the middleware.

https://github.com/ros2/rcl_interfaces/blob/f6b3741d921ef5414125091b2ccc74b863be3c24/service_msgs/msg/ServiceEventInfo.msg#L12-L17 and with this PR.

That way we could take the new docs and test to the rmw implementation maintainers to ask them to fix it.

we can ask help for rmw implementation maintainers. (rmw_fastrtps and rmw_cyclonedds)

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some other parts in the tests where we do similar conditions. If we keep the meta issue open to keep track of the other rmw implementations, I'm fine to merge this.

@ahcorde
Copy link
Contributor

ahcorde commented Oct 1, 2024

Pulls: #2636
Gist: https://gist.githubusercontent.com/ahcorde/2cf3487ad132d0176a20e485febb7ca9/raw/4b56e1d716c28091c288491f12979e5dd6bbe8a4/ros2.repos
BUILD args: --packages-up-to rclcpp --packages-above-and-dependencies rclcpp
TEST args: --packages-select rclcpp --packages-above rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14637

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@clalancette clalancette merged commit 2813045 into rolling Oct 1, 2024
3 checks passed
@clalancette clalancette deleted the fujitatomoya/test-service-event-gid-uniqueness branch October 1, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants